<?php


namespace app\api\controller;

use app\common\model\Menu as MenuModel;
use think\facade\Log;

class Menu extends Controller
{
    //
    public function jsTree()
    {
        $role_id = $this->request->param('role_id');

        $accessList = (new MenuModel)->getJsTree($role_id);

        return $this->renderJson(0,'获取成功',compact('accessList'));
    }
}